package normalclass;

public class Demo01 {
    public static void main(String[] args) {
        Worker worker = new Worker();
        worker.name = "老王";
        method01(worker);
        method02(new Worker());

    }


    public static void method01(Worker worker) {
        System.out.println(worker.name);
    }

    public static void method02(Person person) {
        System.out.println(person.name);
    }
}
